Replace the cell data computations
authorBenjamin Otte <otte@gnome.org>
Tue, 30 Jun 2009 20:58:55 +0000 (22:58 +0200)
committerBenjamin Otte <otte@gnome.org>
Thu, 15 Oct 2009 20:00:08 +0000 (22:00 +0200)
commit30c1a1ee2c471f975d6bf3cb0cef608d428c7a77
tree677281106dcdf11d12eb00a1320bece1dbf2d7ae
parenta5390ad49e53522dedc6bbb894e715e7eef91f7f
Replace the cell data computations

Previously custom functions were used to compute the data passed to the
cell renderers. Now that all this data is saved by the tree models with
compatible nodes, the usual default attribute-to-column mapping can be
used.
With this, caching of the values can happen in the tree model, which
avoids costly lookups of icons or computation of strings. Last but not
least it avoids spurious bugs that could happen when strings changed
without anyone noticing, like the mtime when a new day begins.
gtk/gtkfilechooserdefault.c